package com.xzst.jacksonxml.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:liukexin
 * @DATE:2019-06-24 11:53
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JacksonXmlRootElement(localName = "response")
public class Response implements Serializable {

    private static final long serialVersionUID = 3278079075991612416L;

    @JacksonXmlProperty(localName = "totalResults")
    private String totalResults;

    @JacksonXmlProperty(localName = "timestamp")
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    private Date timestamp;
}
